package ding;

public class Read {


    //TODO 没有必要真正移动
   /*
    public static void main(String[] args) throws IOException {

    *//*    FileTest dir = new FileTest("C:\\Users\\dinglei\\Desktop\\移动");

        FileTest file = new FileTest(dir, "人员信息文件移动.txt");

        BufferedReader reader = new BufferedReader(new FileReader(file));

        String line;


        //真正执行文件移动操作
        while ((line = reader.readLine()) != null) {

            String[] split = line.split("->");

            String from = NameIdcardReaname.sBase + split[0];
            String to = "[目标路径]"+ split[1];

            FileTest toFile = new FileTest(to);

            FileTest fromFile = new FileTest(from);
            if (toFile.exists()) {

                FileTest[] files = fromFile.listFiles();
                if (files != null && files.length > 0) {
                    for (FileTest f : files) {
                        FileTest targetFile = new FileTest(toFile, f.getName());
                        if (!targetFile.exists()) {
                            f.renameTo(targetFile);
                        }
                    }
                }

            } else {
                fromFile.renameTo(toFile);
            }

        }*//*

    }
*/
}
